-
Notifications
You must be signed in to change notification settings - Fork 160
refactor(tree): add raf check for tree SSR #16102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| private selectionService: IgxTreeSelectionService, | ||
| private treeService: IgxTreeService, | ||
| private element: ElementRef<HTMLElement>, | ||
| private platform: PlatformUtil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some failing tests due to the constructor changes. Those should be fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed the tests by adding the extra parameter.
| requestAnimationFrame(() => { | ||
| this.selectionService.selectNodesWithNoEvent(toBeSelected); | ||
| }); | ||
| } else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it needed to set the selection on the server? I assume that when the view hydrates it would go through the same logic and apply selection if needed, so maybe the else handling here is redundant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, removed the else
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The else is still here. It got added back with your last commit.
99ed9cd to
197ef39
Compare
| requestAnimationFrame(() => { | ||
| this.selectionService.selectNodesWithNoEvent(toBeSelected); | ||
| }); | ||
| } else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The else is still here. It got added back with your last commit.
…I/igniteui-angular into ttonev/tree-fix-ssr-20.x
…I/igniteui-angular into ttonev/tree-fix-ssr-20.x
Closes #16038
Additional information (check all that apply):
Checklist:
feature/README.MDupdates for the feature docsREADME.MDCHANGELOG.MDupdates for newly added functionalityng updatemigrations for the breaking changes (migrations guidelines)